package com.jake.springboot.mybatis.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PersonJson implements Serializable {

    private String name;

    private String birthday;

    private PersonInnerJson personInnerJson;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class PersonInnerJson {

        private int jsonId;

        private String jsonName;
    }
}